package vn.nt.healthcare.server.ws.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Location implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private String uuid;
	private String street;
	private String number_houser;
	private String city;
	@Column(name="start_work")
	private String begin;
	@Column(name="end_work")
	private String end;
	private double geo_L;
	private double geo_B;
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getNumber_houser() {
		return number_houser;
	}
	public void setNumber_houser(String number_houser) {
		this.number_houser = number_houser;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getBegin() {
		return begin;
	}
	public void setBegin(String begin) {
		this.begin = begin;
	}
	public String getEnd() {
		return end;
	}
	public void setEnd(String end) {
		this.end = end;
	}
	public double getGeo_L() {
		return geo_L;
	}
	public void setGeo_L(double geo_L) {
		this.geo_L = geo_L;
	}
	public double getGeo_B() {
		return geo_B;
	}
	public void setGeo_B(double geo_B) {
		this.geo_B = geo_B;
	}
	
	@ManyToOne
	@JoinColumn(name="company_uuid", nullable=false)
	private Company company;
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}	
}
